$(function (){
    $.ajax({
        url: "user/getUsername",
        type: "post",
        async: false,
        cache: false,
        dataType: "text",
        "success": function (json) {
            if(json=='no'){
                alert('请先登录')
                window.location.href='yl-login.html'
            }
        }
    })
})
